package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.Banner;
import cn.wolfcode.luowowo.domain.Region;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface BannerRepository extends MongoRepository<Banner,String> {

    /**
     * 通过类型查找Banner
     * @param type
     * @param pageable
     * @return
     */
    List<Banner> findByType(int type, PageRequest pageable);
}
